package cluster

import (
	"webGoDemo/dao/cluster"
	"webGoDemo/model"
)

type LogicClusterService struct {
}

func (l *LogicClusterService) ServiceCheckState(tenantId, instanceId string) (*model.Cluster, error) {

	dao := new(cluster.DaoClusterService)
	cluster, err := dao.DaoCheckState(tenantId, instanceId)
	if err != nil {
		return nil, err
	}
	return cluster, nil
}
